﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GameSchool.Models;

namespace GameSchool.Repository
{
    public class RepositoryMaster
    {
        static IGameSchoolRepository current;

        public static IGameSchoolRepository CurrentRepository 
        {
            get
            {
                if (current == null) 
                {
                    current = new Repositories.RuGameSchool.RuGameSchoolRepository();
                }
                return current;
            }
            set
            {
               current = value;
            }
        }
    }
}